Component({
	data: {
		selected: 0,
		color: '#333333',
		selectedColor: '#095be8',
		borderStyle: 'white',
		backgroundColor: '#ffffff',
		list: [{
			iconPath: '/static/tabbar/index.png',
			selectedIconPath: '/static/tabbar/index_fill.png',
			pagePath: '/pages/index/index',
			text: '首页',
			zw: 'ཤོག་ངོས་དང་པོ།',
		}, {
			iconPath: '/static/tabbar/publicize.png',
			selectedIconPath: '/static/tabbar/publicize_fill.png',
			pagePath: '/pages/publicize/publicize',
			text: '政策宣传',
			zw: 'སྲིད་ཇུས་དྲིལ་བསྒྲགས།',
		}, {
			iconPath: '/static/tabbar/my.png',
			selectedIconPath: '/static/tabbar/my_fill.png',
			pagePath: '/pages/my/my',
			text: '我的',
			zw: 'ངའི།',
		}]
	},
	attached() {},
	methods: {
		switchTab (e) {
			const data = e.currentTarget.dataset
			const url = data.path
			wx.switchTab({
				url
			})
			this.setData({
				selected: data.index
			})
		}
	}
})